package com.yunji.storage.dao;

import com.yunji.common.base.IBaseDao;
import com.yunji.storage.bo.DiscardRemoveBO;
import com.yunji.storage.bo.DiscardSelectQueryBO;
import com.yunji.storage.bo.StorageUpdateAuditBO;
import com.yunji.storage.domain.DiscardTicketDO;

public interface IDiscardTicketDao extends IBaseDao<DiscardTicketDO> {
    boolean deleteByTicket(DiscardRemoveBO bo);

    DiscardTicketDO select(DiscardSelectQueryBO bo);

    boolean deleteDraft(Long... discardIds);

    boolean updateTicket(DiscardTicketDO discardTicket);

    boolean create(DiscardTicketDO discardTicket);

    void resetAuditStatus(Long discardId);

    boolean updateAuditStatus(StorageUpdateAuditBO auditBO);
}
